<h1>Vitaj Admin</h1>
	<fieldset>
	<legend>Zmena Emailu</legend>
      <?php
        echo form_open('admin/mail_zmena_validation');
        echo validation_errors();
        
        if (($this->input->post('novy_email') != NULL)){
          echo "Email zmenený";
        }
        
        echo "<p><label>Nový mail: </label>";
        echo form_input('novy_email', $this->input->post('novy_email'));
        echo "</p>";
    
        echo "<p><label>Podvrdiť nový mail: </label>";
        echo form_input('confirm_email', $this->input->post('confirm_email'));
        echo "</p>";
        
        echo "<p><label></label>";
        echo form_submit('mail_zmena_submit', 'Zmeniť');
        echo "</p>";
        
        echo form_close();
      ?>
  </fieldset>
  
  
  <fieldset>
	<legend>Zmena úvodného textu</legend>
	      <?php
        echo form_open('admin/zmena_textu');
        
        if (($this->input->post('text') != NULL)){
          echo "Text zmenený";
        }
        
		    if (($this->input->post('text') == NULL) and isset($text)){
        echo form_textarea('text', set_value('text', $text), $this->input->post('text'));
    }else{
        echo form_textarea('text', set_value('text', $this->input->post('text')), $this->input->post('text'));
    }
        echo "</p>";
   
        
        echo "<p><label></label>";
        echo form_submit('text_zmena_submit', 'Zmeniť');
        echo "</p>";
        
        echo form_close();
      ?>
  
  </fieldset>
  
  <fieldset>
	<legend>Hromadné mazanie dát</legend>
	      <?php
        echo form_open('admin/mazanie_dat');
        
        echo "<p><label>Vymazanie termínov udalostí(rozvrhu)</label>";
        echo form_submit('terminy_zmaz_submit', 'Zmazať');
        echo "</p>";
		
		echo "<p><label>Vymazanie udalostí</label>";
        echo form_submit('udalosti_zmaz_submit', 'Zmazať');
        echo "</p>";
        
        echo form_close();
      ?>
  
  </fieldset>